package cn.wolfcode.review.mapper;

import cn.wolfcode.review.domain.Project;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProjectMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Project record);

    Project selectByPrimaryKey(Long id);

    List<Project> selectAll();

    int updateByPrimaryKey(Project record);

    void insertDevRelation(@Param("projectId") Long projectId, @Param("employeeId") Long employeeId);

    void insertTestRelation(@Param("projectId") Long projectId, @Param("employeeId") Long employeeId);

    Project selectByName(String name);

    void deleteTestRelation(@Param("projectId") Long projectId, @Param("employeeId") Long employeeId);
}